package com.pkk.spring.cloud.starter.gateway.annotation;

import com.pkk.spring.cloud.service.gateway.annotation.GatewayExtAdviceModel;
import com.pkk.spring.cloud.service.gateway.selector.GatewayExtAdviceModelImportSelector;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.context.annotation.Import;

/**
 * 启用网关扩展支持
 *
 * @author peikunkun
 * @version V1.0
 * @date 2021-01-25 17:01
 **/

@Inherited
@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(GatewayExtAdviceModelImportSelector.class)
public @interface EnableGatewayExt {


  /**
   * 扩展支持的插件
   *
   * @return
   */
  GatewayExtAdviceModel[] ext();
}
